<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新品有戏商家合作平台</title>
    <script src="__JS__/jquery.js"></script>
    <link href="__CSS__/boot.css" rel="stylesheet">
    <link href="__STATIC__/layui/css/layui.css" rel="stylesheet">
    <script src="__JS__/layer/layer.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <style>
        tr td{
            text-align: center;
        }
    </style>
</head>
<body>
{include file="base/header" /}
<table class="layui-table">
    <thead>
    <tr>
        <td>商品名称</td>
        <td>申请单号</td>
        <td>申请时间</td>
        <td>应结算数(个)</td>
        <td>状态</td>
    </tr>
    </thead>
    <tbody>
    {foreach $result as $val}
        <tr>
            <td>{$val.pname}</td>
            <td>{$val.ordernumber}</td>
            <td>{$val.date}</td>
            <td>{$val.anumber}</td>
            {if $val.status == 1}
                <td style="color: red">未结算</td>
            {elseif $val.status == 2 /}
                <td>已结算</td>
            {/if}
        </tr>
    {/foreach}
    </tbody>
    {$result->render()}
</table>
</body>
</html>